package com.ruoyi.project.bajiaostar.jbhWepicture.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.bajiaostar.jbhWepicture.mapper.JbhWepictureMapper;
import com.ruoyi.project.bajiaostar.jbhWepicture.domain.JbhWepicture;
import com.ruoyi.project.bajiaostar.jbhWepicture.service.IJbhWepictureService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 网站图片Service业务层处理
 * 
 * @author 写烧糊
 * @date 2024-07-18
 */
@Service
public class JbhWepictureServiceImpl implements IJbhWepictureService 
{
    @Autowired
    private JbhWepictureMapper jbhWepictureMapper;

    /**
     * 查询网站图片
     * 
     * @param id 网站图片ID
     * @return 网站图片
     */
    @Override
    public JbhWepicture selectJbhWepictureById(Long id)
    {
        return jbhWepictureMapper.selectJbhWepictureById(id);
    }

    /**
     * 查询网站图片列表
     * 
     * @param jbhWepicture 网站图片
     * @return 网站图片
     */
    @Override
    public List<JbhWepicture> selectJbhWepictureList(JbhWepicture jbhWepicture)
    {
        return jbhWepictureMapper.selectJbhWepictureList(jbhWepicture);
    }

    /**
     * 新增网站图片
     * 
     * @param jbhWepicture 网站图片
     * @return 结果
     */
    @Override
    public int insertJbhWepicture(JbhWepicture jbhWepicture)
    {
        return jbhWepictureMapper.insertJbhWepicture(jbhWepicture);
    }

    /**
     * 修改网站图片
     * 
     * @param jbhWepicture 网站图片
     * @return 结果
     */
    @Override
    public int updateJbhWepicture(JbhWepicture jbhWepicture)
    {
        return jbhWepictureMapper.updateJbhWepicture(jbhWepicture);
    }

    /**
     * 删除网站图片对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteJbhWepictureByIds(String ids)
    {
        return jbhWepictureMapper.deleteJbhWepictureByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除网站图片信息
     * 
     * @param id 网站图片ID
     * @return 结果
     */
    @Override
    public int deleteJbhWepictureById(Long id)
    {
        return jbhWepictureMapper.deleteJbhWepictureById(id);
    }
}
